//
//  FLLScrollTableViewCell.m
//  FLLGodOfCooking
//
//  Created by LL.F on 16/9/13.
//  Copyright © 2016年 LL.F. All rights reserved.
//

#import "FLLScrollTableViewCell.h"
#import "FLLMacro.h"
#import "UIView+Frame.h"

@interface FLLScrollTableViewCell ()<UIScrollViewDelegate>

@end

@implementation FLLScrollTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];

    if (self ) {
        self.scrollView = [[UIScrollView alloc] init];
        _scrollView.fll_width = SCREEN_WIDTH;
        self.scrollView.showsVerticalScrollIndicator = YES;
        [self.contentView addSubview:_scrollView];

    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.scrollView.frame = CGRectMake(0, 0, self.contentView.bounds.size.width, self.contentView.bounds.size.height);
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
